import Main from '@/components/main/Main.vue'

/**
 * 页面路由改造
 * 取消hide 直接后台处理即可
 * 取消meta 直接置于主对象方便操作
 * */
export default [
    {
        path: '/login',
        name: 'login',
        meta: {
            title: 'Login - 登录',
            hideInMenu: true
        },
        component: () => import("@/view/login/login")
    },
    {
        path: '/',
        name: '_home',
        meta: {
            hideInMenu: true,
            notCache: true
        },
        component: Main,
        children: [
            {
                path: '/home',
                name: 'home',
                meta: {
                    hideInMenu: true,
                    title: '首页',
                    notCache: true,
                    icon: 'md-home'
                },
                component: () => import("@/view/home/home")
            }
        ]
    },
    {
        path: '/w',
        name: '_home2',
        meta: {
            title: '一级菜单',
            notCache: true,
            icon: 'md-home'
        },
        component: Main,
        children: [
            {
                path: '/home2',
                name: 'home2',
                meta: {
                    title: '二级菜单',
                    notCache: true,
                },
                component: () => import("@/view/home/home")
            }
        ]
    }
]